package com.supreme.goodsserver.feignapi;

import com.supreme.commonboot.utils.AjaxResp;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping(value = "goods.feign")
public class GoodsFeignController {

    @GetMapping(value = "goods")
    public AjaxResp getGoodsList() {
        return AjaxResp.instance();
    }

    @GetMapping(value = "goods/{goodsId}")
    public AjaxResp getGoods(@PathVariable(value = "goodsId") Long goodsId) {
        return AjaxResp.instance();
    }
}
